<%@ include file="/common/taglibs.jsp"%>

<head>
    <title><fmt:message key="dictDetail.title"/></title>
    <meta name="heading" content="<fmt:message key='dictDetail.heading'/>"/>
</head>

<s:form id="dictForm" action="saveDict" method="post" validate="true">
    <li style="display: none">
        <s:hidden key="dict.id"/>
    </li>
    <s:textfield key="dict.code" required="true" maxlength="16" cssClass="text medium"/>
    <s:textfield key="dict.description" required="false" maxlength="64" cssClass="text medium"/>
    <s:textfield key="dict.level" required="false" maxlength="255" cssClass="text medium"/>
    <s:textfield key="dict.name" required="true" maxlength="32" cssClass="text medium"/>
    <s:textfield key="dict.sorted" required="false" maxlength="255" cssClass="text medium"/>
    <s:textfield key="dict.status" required="false" maxlength="255" cssClass="text medium"/>
    <s:textfield key="dict.updateTime" required="true" maxlength="19" cssClass="text medium"/>
    <s:textfield key="dict.updateUser" required="true" maxlength="255" cssClass="text medium"/>

    <li class="buttonBar bottom">
        <s:submit cssClass="button" method="save" key="button.save" theme="simple"/>
        <c:if test="${not empty dict.id}">
            <s:submit cssClass="button" method="delete" key="button.delete"
                onclick="return confirmDelete('Dict')" theme="simple"/>
        </c:if>
        <s:submit cssClass="button" method="cancel" key="button.cancel" theme="simple"/>
    </li>
</s:form>

<script type="text/javascript">
    Form.focusFirstElement($("dictForm"));
</script>
